import static java.lang.Thread.sleep;

public class customer implements Runnable{

    private  box b;

    public customer(box b) {
        this.b = b;
    }

    @Override
    public void run() {
        while (true) {
            try {
                System.out.println(b.get_product());
                sleep(1000);

            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
